#include "app.h"
#include "ui_app.h"
#include "dbmodel.h"

App::App(QWidget *parent) :
    QMainWindow(parent),
    itemModel(new QStandardItemModel()),
    ui(new Ui::App)
{
    ui->setupUi(this);

    DbModel *model = new DbModel(ui->tableViewResult);
    model->query();
    ui->tableViewResult->setModel(model);
}

App::~App()
{
    delete ui;
}
